package com.klouda.gboff;

import android.app.Activity;
import android.app.Dialog;
import android.widget.TextView;

public abstract class BookActivity extends Activity  {
  
  public static final String ERROR_TAG = "GbOffError";
  

  /*
  protected void showErrorDialog(int p_titleMsgKey, int p_messageMsgKey) {
    Dialog l_dialog = new Dialog(this);         
    l_dialog.setTitle(getResources().getText(p_titleMsgKey));
    TextView l_textView = new TextView(this);
    l_textView.setText(getResources().getText(p_messageMsgKey));
    l_dialog.setContentView(l_textView);
    l_dialog.show();    
  }
  */
  
  protected void showErrorDialog(String p_error, Exception p_ex) {
    if(p_ex != null) {
      p_ex.printStackTrace();
    }
    Dialog l_dialog = new Dialog(this);         
    l_dialog.setTitle("chyba");
    TextView l_textView = new TextView(this);
    l_textView.setText("p_error");
    l_dialog.setContentView(l_textView);
    l_dialog.show();    
  }
}
